package vista;

import javax.swing.JFrame;

import java.awt.GridLayout;

import javax.swing.JLabel;

import java.awt.BorderLayout;

import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JTable;

import control.Main;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class VentanaPrincipal extends JFrame {
	private JTable tAutomata1;
	private JTable tAutomata2;

	public VentanaPrincipal(Main main) {
		getContentPane().setLayout(new GridLayout(6, 2, 0, 0));

		JLabel lblAlfabeto = new JLabel("Alfabeto:");
		getContentPane().add(lblAlfabeto);

		final JComboBox cbAlfabeto = new JComboBox();
		lblAlfabeto.setLabelFor(cbAlfabeto);
		cbAlfabeto.setModel(new DefaultComboBoxModel(new String[] { "{a,b}",
				"{a,b,c}" }));
		getContentPane().add(cbAlfabeto);

		JLabel lblAutomata = new JLabel("Automata 1");
		getContentPane().add(lblAutomata);

		JLabel lblAutomata_1 = new JLabel("Automata 2");
		getContentPane().add(lblAutomata_1);

		JButton btnCrearNuevo1 = new JButton("Crear nuevo");
		getContentPane().add(btnCrearNuevo1);

		JButton btnCrearNuevo2 = new JButton("Crear nuevo");
		getContentPane().add(btnCrearNuevo2);

		tAutomata1 = new JTable();
		lblAutomata.setLabelFor(tAutomata1);
		tAutomata1.setToolTipText("Automata 1");
		tAutomata1.setRowSelectionAllowed(false);
		getContentPane().add(tAutomata1);

		tAutomata2 = new JTable();
		lblAutomata_1.setLabelFor(tAutomata2);
		tAutomata2.setToolTipText("Automata 2");
		tAutomata2.setRowSelectionAllowed(false);
		getContentPane().add(tAutomata2);

		JButton btnsonEquivalentes = new JButton("\u00BFSon equivalentes?");
		btnsonEquivalentes.setEnabled(false);
		getContentPane().add(btnsonEquivalentes);

		// pack();
	}

}
